package com.erp.shop.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.erp.shop.domain.vo.ErpSellerStorePriceTemplateVo;
import com.ruoyi.common.core.annotation.DataColumn;
import com.ruoyi.common.core.annotation.DataPermission;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import com.ruoyi.shop.api.domain.ErpSellerStorePriceTemplate;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 智能定价模板Mapper接口
 *
 * @author erp
 * @date 2023-05-04
 */
public interface ErpSellerStorePriceTemplateMapper extends
        BaseMapperPlus<ErpSellerStorePriceTemplateMapper, ErpSellerStorePriceTemplate, ErpSellerStorePriceTemplateVo> {

	@Override
//	@DataPermission({ @DataColumn(key = "userName", value = "seller_id") })
	<P extends IPage<ErpSellerStorePriceTemplate>> P selectPage(P page,
			@Param(Constants.WRAPPER) Wrapper<ErpSellerStorePriceTemplate> queryWrapper);

	@Override
//	@DataPermission({ @DataColumn(key = "userName", value = "seller_id") })
	List<ErpSellerStorePriceTemplate> selectList(
			@Param(Constants.WRAPPER) Wrapper<ErpSellerStorePriceTemplate> queryWrapper);

	List<ErpSellerStorePriceTemplateVo> selectListBySellerId(String sellerId);
}
